package com.example.visitor;

public class CEO implements Visitor{
    private String name;
    public CEO(String name) {
        this.name = name;
    }

    @Override
    public void visit(Manager employ) {
        System.out.println("CEO " + name + " visit " + employ.getName()+"关注的是项目成功了几个");
    }

    @Override
    public void visit(Programer employ) {
        System.out.println("CEO " + name + " visit " + employ.getName()+"关注的是开发人员是否固定");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



}
